/***********************************************************************************************//**
 * \file   advertisement-callback.c
 * \brief  Callbacks related to connectable advertisement
 ***************************************************************************************************
 * <b> (C) Copyright 2015 Silicon Labs, http://www.silabs.com</b>
 ***************************************************************************************************
 * This file is licensed under the Silabs License Agreement. See the file
 * "Silabs_License_Agreement.txt" for details. Before using this software for
 * any purpose, you must agree to the terms of that agreement.
 **************************************************************************************************/

/* standard library headers */
#include <stdint.h>
#include <stdbool.h>


/* application specific headers */
#include "app_ui.h"

/* Own header*/
#include "advertisement-callback.h"

/***************************************************************************************************
  Local Macros and Definitions
***************************************************************************************************/

/* Text definitions */
#define ADV_ADV_TEXT        "\nAdvertising\n\nM O D E\n"
#define ADV_NON_ADV_TEXT    "\nAdvertising\n\nstopped\n"

/***************************************************************************************************
 Function Definitions
 **************************************************************************************************/

 void advertisingStartedCallback(void)
{
  appUiWriteString(ADV_ADV_TEXT); /* Display Advertisement text */
}

void advertisingStoppedCallback(void)
{
  appUiWriteString(ADV_NON_ADV_TEXT); /* Display Advertisement stopped text */
}
